package com.sxf.core.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 
 * @description: 手机号校验类
 * @author: zhangyb@ccccit.com.cn 
 * @date: 2021年1月6日 下午2:53:01
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {IsMobileNoValidator.class})
public @interface IsMobileNo {
	
	String message() default "请输入正确的手机号";
	
	Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default { };
	
	boolean checkNull() default true;

}
